package com.hkbigdata.springbootdi.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author liuanbo
 * @creat 2024-12-13-10:59
 * @see 2194550857@qq.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "di")
public class Customer {

    @Id
    @Field(type = FieldType.Long)
    private Long id;
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String name;
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String profession;
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String sex;
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String source;

}
